package com.ruoyi.dgw.service.impl;

import java.util.List;
import java.util.Map;

import com.ruoyi.dgw.domain.TagNumber;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dgw.mapper.TableEarnumberMapper;
import com.ruoyi.dgw.domain.TableEarnumber;
import com.ruoyi.dgw.service.ITableEarnumberService;

/**
 * 耳标数量Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-22
 */
@Service
public class TableEarnumberServiceImpl implements ITableEarnumberService
{
    @Autowired
    private TableEarnumberMapper tableEarnumberMapper;

    /**
     * 查询耳标数量
     * 
     * @param id 耳标数量主键
     * @return 耳标数量
     */
    @Override
    public TableEarnumber selectTableEarnumberById(Long id)
    {
        return tableEarnumberMapper.selectTableEarnumberById(id);
    }

    /**
     * 查询耳标数量列表
     * 
     * @param tableEarnumber 耳标数量
     * @return 耳标数量
     */
    @Override
    public List<TableEarnumber> selectTableEarnumberList(TableEarnumber tableEarnumber)
    {
        return tableEarnumberMapper.selectTableEarnumberList(tableEarnumber);
    }

    /**
     * 新增耳标数量
     * 
     * @param tableEarnumber 耳标数量
     * @return 结果
     */
    @Override
    public int insertTableEarnumber(TableEarnumber tableEarnumber)
    {
        return tableEarnumberMapper.insertTableEarnumber(tableEarnumber);
    }

    /**
     * 修改耳标数量
     * 
     * @param tableEarnumber 耳标数量
     * @return 结果
     */
    @Override
    public int updateTableEarnumber(TableEarnumber tableEarnumber)
    {
        return tableEarnumberMapper.updateTableEarnumber(tableEarnumber);
    }

    /**
     * 批量删除耳标数量
     * 
     * @param ids 需要删除的耳标数量主键
     * @return 结果
     */
    @Override
    public int deleteTableEarnumberByIds(Long[] ids)
    {
        return tableEarnumberMapper.deleteTableEarnumberByIds(ids);
    }

    /**
     * 删除耳标数量信息
     * 
     * @param id 耳标数量主键
     * @return 结果
     */
    @Override
    public int deleteTableEarnumberById(Long id)
    {
        return tableEarnumberMapper.deleteTableEarnumberById(id);
    }

    @Override
    public List<Map<String, String>> queryList(String village) {
        return tableEarnumberMapper.queryList(village);
    }

    @Override
    public Map<String, String> querySum(Long deptId) {
        return tableEarnumberMapper.querySum(deptId);
    }

    @Override
    public List<TagNumber> queryEarList(String name, String deptName, String phone) {
        return tableEarnumberMapper.queryEarList(name,deptName,phone);
    }
}
